package com.vhall.component.entity.account.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author rui.zhou
 * @date 2021/4/21 14:50
 */

@Data
public class AccessListVO implements Serializable {

    private static final long serialVersionUID = -93066136979115875L;

    @NotBlank(message = "account_id不能为空")
    @ParamName("account_id")
    private String accountId;

    @NotBlank(message = "app_id不能为空")
    @ParamName("app_id")
    private String appId;

    @NotBlank(message = "role_name不能为空")
    @Pattern(regexp = "(1)|(2)|(3)|(4)", message = "role_name 只能是1,2,3,4")
    @ParamName("role_name")
    private String roleName;


    private String from;

    @ParamName("vss_token")
    private String vssToken;

    private String en;

}
